﻿<div class="col-md-4" ng-hide="session.tenant" ng-controller="app.views.tenantselect as vm">
    <!-- BEGIN Portlet PORTLET-->
    <div class=" portlet light bordered">
        <div class="portlet-title">
            <div class="caption">
                <i class="icon-microphone font-blue-hoki"></i>
                <span class="caption-subject bold font-blue-hoki uppercase">
                    租户列表
                </span>
                <span class="caption-helper">先选择租户再管理用户</span>
            </div>

        </div>
        <div class="portlet-body">
            @*<div class="actions">

                </div>*@
            <div class="slimScrollDiv" style="position: relative; overflow: hidden; width: auto;">
                <div class="scroller" style="height: 350px; overflow: hidden; width: auto;" data-initialized="1">
                    <div class="portlet-input input-inline input-small">
                        <div class="input-icon right">
                            <i class="icon-magnifier"></i>
                            <input type="text" ng-model="query.name" class="form-control input-circle" placeholder="租户名...">
                        </div>
                    </div>
                    <div class="table-scrollable">
                        <table class="table table-hover ">
                            <thead>
                                <tr>
                                    <th>
                                        租户名字
                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="tenant in tenants | filter:query">
                                    <td ng-click="selectTenant(tenant.id)">
                                        {{tenant.name}}
                                    </td>
                                </tr>

                            </tbody>
                        </table>
                    </div>
                </div>

            </div><div class="slimScrollBar" style="width: 7px; position: absolute; top: 0px; opacity: 0.4; display: none; border-radius: 7px; z-index: 99; right: 1px; height: 141.843971631206px; background: rgb(187, 187, 187);"></div><div class="slimScrollRail" style="width: 7px; height: 100%; position: absolute; top: 0px; display: none; border-radius: 7px; opacity: 0.2; z-index: 90; right: 1px; background: rgb(234, 234, 234);"></div>
        </div>
    </div>

    <!-- END Portlet PORTLET-->
</div>